package com.ryan;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author raofy
 * @date 2021-10-25 10:24
 * @desc
 */
@EnableApolloConfig
@SpringBootApplication
public class SentinelClientApolloApplication {

    public static void main(String[] args) {
        SpringApplication.run(SentinelClientApolloApplication.class, args);
    }

    @Slf4j
    @RestController
    static class MyTestController {
        @GetMapping("hello")
        public String hello() {
            return "test.com";
        }
    }
}
